# [1]安装 TiDB Operator CRDs

kubectl create -f https://ghproxy.net/raw.githubusercontent.com/pingcap/tidb-operator/master/manifests/crd.yaml

# kubectl apply -f https://gitee.com/mirrors/TiDB-Operator/raw/master/manifests/crd.yaml

export namespace="tidb-operator"
export app_name="tidb-operator"
export helm="pingcap/tidb-operator"

# [2]安装 TiDB Operator
# kubectl create namespace tidb-admin
helm upgrade --create-namespace --install \
    -n $namespace $app_name $helm \
    --set scheduler.create=true \
    --set scheduler.kubeSchedulerImageName=registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler
# --set operatorImage=registry.cn-beijing.aliyuncs.com/tidb/tidb-operator:$version \
# --set tidbBackupManagerImage=registry.cn-beijing.aliyuncs.com/tidb/tidb-backup-manager:$version \

# kubescheduler.config.k8s.io/v1
